﻿@model IEnumerable<RIS.TMP.WEB.APP.Models.MRSaveRestore>

@{
    ViewBag.Title = "Save Repair : ข้อมูลบันทึกซ่อมบำรุง";
}
@section Home{
    <h1 class="page-header">
        Save Repair
        <p class="lead">(ข้อมูลบันทึกซ่อมบำรุง)</p>
    </h1>

    <div class="table-responsive">
        <table id="table" class="table table-striped table-bordered table-hover" aria-describedby="table_info">
            <thead>
                <tr>
                    <th>
                        @Html.DisplayNameFor(model => model.MRestoreToAdmin.ResCode)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.RemarkRestore)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.Invoine)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.ChangeRestore)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.FirstSucdate)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.FirstSucTime)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.LastSucdate)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.LastSucTime)
                    </th>
                    <th></th>
                </tr>
                </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            @Html.DisplayFor(modelItem => item.MRestoreToAdmin.ResCode)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.RemarkRestore)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Invoine)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.ChangeRestore)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.FirstSucdate)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.FirstSucTime)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.LastSucdate)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.LastSucTime)
                        </td>
                        <td>
                            @Html.ActionLink("Edit", "Edit", new { id = item.SResId }) |
                            @Html.ActionLink("Details", "Details", new { id = item.SResId }) |
                            @Html.ActionLink("Delete", "Delete", new { id = item.SResId })
                        </td>
                    </tr>
                }
            </tbody>

        </table>
        </div>
}
@section scripts {
    @Scripts.Render("~/Scripts/jquery.dataTables.min.js")
    @Scripts.Render("~/Scripts/dataTables.bootstrap.js")
    @*@Scripts.Render("~/Scripts/css/dataTables.bootstrap.css")*@
    <script type="text/javascript">
        $(".AB").show();
        $(document).ready(function () {
            $('#table').dataTable({
                "sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>"
            });
        });

        $.extend($.fn.dataTableExt.oStdClasses, {
            "sWrapper": "dataTables_wrapper form-inline"
        });
    </script>
}